import '@/styles/index.scss'
import { createApp } from 'vue'
import router from './router'
import pinia from '@/store'

// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import App from '@/App.vue'
import Components from '@/components'


const app = createApp(App)
app.use(pinia)//存储
  .use(router) //路由
  .use(ElementPlus, {
    locale: zhCn,
  })
  .use(Components)
  .mount('#app')
